//
//  RMMMySkillView.m
//  Romomo
//
//  Created by puman on 16/10/9.
//  Copyright © 2016年 mazegong. All rights reserved.
//

#import "RMMMySkillView.h"

@implementation RMMMySkillView
- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = kWhiteColor;
        UIImageView *imageV = [[UIImageView alloc] initWithFrame:CGRectMake(kScreenWideth / 2 - 41, 136, 82, 82)];
        imageV.image = [UIImage imageNamed:@"初始1@3x"];
        [self addSubview:imageV];
        
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, imageV.bottom , kScreenWideth, 40)];
        label.text = @"哇,又一枚未发现的鲜肉小主!您还没有预约美容服务";
        label.textColor = COLORFROMCODE(0xAEAEAE, 1);
        label.textAlignment = NSTextAlignmentCenter;
        label.font = kFont(13);
        [self addSubview:label];
        
        _bookingShangMneBut = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _bookingShangMneBut.frame = CGRectMake(kScreenWideth / 2 - 70, label.bottom, 3 * kHalf - kRow, 2 * kMaric);
        _bookingShangMneBut.layer.cornerRadius = kMaric;
        _bookingShangMneBut.layer.borderWidth = 1;
        _bookingShangMneBut.layer.borderColor = COLORFROMCODE(0x53C7C6 , 1).CGColor;
        [_bookingShangMneBut setTitleColor:COLORFROMCODE(0x53C7C6 , 1) forState:(UIControlStateNormal)];
        _bookingShangMneBut.titleLabel.font = kBFont(13);
        [_bookingShangMneBut setTitle:@"预约上门美容" forState:(UIControlStateNormal)];
        [self addSubview:_bookingShangMneBut];
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
